package com.yunhe.spring.mybatis.model;

import java.io.Serializable;
import java.util.List;

public class Pages implements Serializable {

	/**
	 * 分页辅助类
	 */
	private static final long serialVersionUID = 1L;

	/*
	 * 页面大小（每页有几行数据）
	 */
	private Integer pageSize;

	/*
	 * 当前页码
	 */
	private Integer curPageNum;

	/*
	 * 总页数
	 */
	private Integer totalPage;

	/*
	 * 数据总数
	 */
	private Integer totalNum;

	/*
	 * 查询出的数据集合
	 */
	private List<Object> result;

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getCurPageNum() {
		return curPageNum;
	}

	public void setCurPageNum(Integer curPageNum) {
		this.curPageNum = curPageNum;
	}

	public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	public Integer getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(Integer totalNum) {
		this.totalNum = totalNum;
	}

	public List<Object> getResult() {
		return result;
	}

	public void setResult(List<Object> result) {
		this.result = result;
	}

	@Override
	public String toString() {
		return "Pages [pageSize=" + pageSize + ", curPageNum=" + curPageNum + ", totalPage=" + totalPage + ", totalNum="
				+ totalNum + ", result=" + result + "]";
	}

}
